<?php
declare(strict_types=1);

namespace Service\ChannelService;
use Service\BaseService;
use App\Model\BbcModel\Config;
class ConfigService extends BaseService
{
    /**
     * 获取配置
     * @param string $code
     * @param int $mn_sid
     */
    public function getConfig(int $sid,string $code)
    {
        $data = Config::instance()->info(['sid' => $sid,'code' => $code]);
        return @json_decode($data['value'] ??'', true);
    }
}